// redux原生插件
import {applyMiddleware, createStore} from 'redux';
// redux异步中间件
import thunk from 'redux-thunk'
// 导入组装好的reducers
import reducers from './reducer'
// 引入开发者工具
import {composeWithDevTools} from 'redux-devtools-extension'
// 注入到开发者工具
const compose = composeWithDevTools(applyMiddleware(thunk))
// 执行中间件
export default createStore(reducers, compose);
